package com.sqx.modules.banArea.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.entity.WMPoint;
import com.sqx.common.utils.Result;
import com.sqx.modules.banArea.entity.BanArea;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuChang
 * @since 2023-08-28
 */
public interface IBanAreaService extends IService<BanArea> {

    Result saveBanArea(BanArea banArea);

    IPage<BanArea> getBanAreaList(Integer page, Integer limit, BanArea banArea);

    /**
     * 是否在指定区域内下单
     * @param point
     * @return
     */

    boolean isInBanArea(WMPoint point,Long parentId);

    BanArea getAreaByPoint(Double lng, Double lat);

    IPage<BanArea> getBanAreaTreeList(Integer page, Integer limit, BanArea banArea);

    Result updateAreaStatus(Long areaId);

    IPage<BanArea> getBanAppAreaList(Integer page, Integer limit, BanArea banArea);

    Result deleteArea(Long areaId);
}
